package com.example.gulimallmember.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 成长值变化历史记录
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:51:23
 */

@TableName("ums_growth_change_history")
public class GrowthChangeHistoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * member_id
	 */
	private Long memberId;
	/**
	 * create_time
	 */
	private Date createTime;
	/**
	 * 改变的值（正负计数）
	 */
	private Integer changeCount;
	/**
	 * 备注
	 */
	private String note;
	/**
	 * 积分来源[0-购物，1-管理员修改]
	 */
	private Integer sourceType;

	public GrowthChangeHistoryEntity() {
	}

	public GrowthChangeHistoryEntity(Long id, Long memberId, Date createTime, Integer changeCount, String note, Integer sourceType) {
		this.id = id;
		this.memberId = memberId;
		this.createTime = createTime;
		this.changeCount = changeCount;
		this.note = note;
		this.sourceType = sourceType;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return memberId
	 */
	public Long getMemberId() {
		return memberId;
	}

	/**
	 * 设置
	 * @param memberId
	 */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * @return createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取
	 * @return changeCount
	 */
	public Integer getChangeCount() {
		return changeCount;
	}

	/**
	 * 设置
	 * @param changeCount
	 */
	public void setChangeCount(Integer changeCount) {
		this.changeCount = changeCount;
	}

	/**
	 * 获取
	 * @return note
	 */
	public String getNote() {
		return note;
	}

	/**
	 * 设置
	 * @param note
	 */
	public void setNote(String note) {
		this.note = note;
	}

	/**
	 * 获取
	 * @return sourceType
	 */
	public Integer getSourceType() {
		return sourceType;
	}

	/**
	 * 设置
	 * @param sourceType
	 */
	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}

	public String toString() {
		return "GrowthChangeHistoryEntity{serialVersionUID = " + serialVersionUID + ", id = " + id + ", memberId = " + memberId + ", createTime = " + createTime + ", changeCount = " + changeCount + ", note = " + note + ", sourceType = " + sourceType + "}";
	}
}
